<?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\captcha\Captcha;

$this->title = 'Login';
$this->params['breadcrumbs'][] = $this->title;
?>
<main id="authentication" class="inner-bottom-md">
	<div class="container">
		<div class="row">
			<div class="col-md-3"></div>
			<div class="col-md-6">
				<section class="section sign-in inner-right-xs">
					<h2 class="bordered">登录</h2>
					<p>你好, 欢迎登录桂智商城</p>

					<!--					<div class="social-auth-buttons">
											<div class="row">
												<div class="col-md-6">
													<button class="btn-block btn-lg btn btn-facebook"><i class="fa fa-facebook"></i> QQ帐号登录</button>
												</div>
												<div class="col-md-6">
													<button class="btn-block btn-lg btn btn-twitter"><i class="fa fa-twitter"></i> 微博帐号登录</button>
												</div>
											</div>
										</div>-->
					<div class="social-auth-buttons">
						<div class="row">
							<div class="col-md-6">
								<button class="btn-block btn-lg btn btn-success"> 注册帐号</button>
							</div>
							<div class="col-md-6">
								<a href="<?php echo yii\helpers\Url::toRoute('site/seekpassword'); ?>">
									<button class="btn-block btn-lg btn btn-info">找回密码</button></a>
							</div>
						</div>
					</div>
					<?php $form = ActiveForm::begin(['id' => 'login-form', 'class' => 'login-form cf-style-1']); ?>

					<?= $form->field($model, 'username')->textInput(['autofocus' => true]) ?>

					<?= $form->field($model, 'password')->passwordInput() ?>

					<?= $form->field($model, 'rememberMe')->checkbox() ?>
					<?=
					$form->field($model, 'verifyCode')->label(false)->widget(yii\captcha\Captcha::className(), [
						'template' => '<div class="row"><div class="col-lg-5">{image}</div><div class="col-lg-7" >{input}</div></div>',
						'options' => ['class' => 'form-control', 'placeholder' => "验证码"],
					])
					?>
					<div class="row">
						<div class="col-xs-9">
							<input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">    
						</div>

						<div class="col-md-8">
						</div>
						<div class="form-group col-md-4 ">
							<?= Html::submitButton('登录', ['class' => 'btn btn-primary btn-lg btn-block', 'name' => 'login-button']) ?>
						</div>
					</div>

					<?php ActiveForm::end(); ?>




				</section><!-- /.sign-in -->
			</div><!-- /.col -->

			<!--			<div class="col-md-6">
							<section class="section register inner-left-xs">
								<h2 class="bordered">Create New Account</h2>
								<p>Create your own Media Center account</p>
			
								<form role="form" class="register-form cf-style-1">
									<div class="field-row">
										<label>Email</label>
										<input type="text" class="le-input">
									</div> /.field-row -->

			<!-- /.buttons-holder -->
			<!--					</form>
			
								<h2 class="semi-bold">Sign up today and you'll be able to :</h2>
			
								<ul class="list-unstyled list-benefits">
									<li><i class="fa fa-check primary-color"></i> Speed your way through the checkout</li>
									<li><i class="fa fa-check primary-color"></i> Track your orders easily</li>
									<li><i class="fa fa-check primary-color"></i> Keep a record of all your purchases</li>
								</ul>
			
							</section> /.register 
			
						</div> /.col -->

		</div><!-- /.row -->
	</div><!-- /.container -->
</main><!-- /.authentication -->
